<template>
  <div class="block" style="margin-top:10px">
    <el-pagination
      @size-change="handleSizeChange"
      @current-change="handleCurrentChange"
      :current-page="currentPage"
      :page-sizes="[8, 16, 32]"
      :page-size="pageSize"
      layout="total, sizes, prev, pager, next, jumper"
      :total="total"
    >
    </el-pagination>
  </div>
</template>

<script>
export default {
  props: ["currentPage", "pageSize", "total"],
  data() {
    return {
      
      pageParm: {
        currentPage: this.currentPage,
        pageSize: this.pageSize
      }
    };
  },
  methods: {
    handleSizeChange(val) {
      
      this.pageParm.pageSize = val
      this.$emit("callFather", this.pageParm);
    },
    handleCurrentChange(val) {
      
      this.pageParm.currentPage = val
      this.$emit("callFather", this.pageParm);
    }
  }
};
</script>

<style></style>